package com.zeldu.exam.service.serviceimpl;

import com.zeldu.exam.mapper.CourseExamMapper;
import com.zeldu.exam.pojo.Course;
import com.zeldu.exam.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService{
    @Autowired(required = false)
    private CourseExamMapper CourseExamMapper;

    @Override
    public List<Course> queryTeacherAll(Long teacher_id) {
        return CourseExamMapper.queryTeacherAll(teacher_id);
    }


    @Override
    public List<Course> queryStudentsId(Long courseId) {
        return CourseExamMapper.queryStudentsId(courseId);
    }


}
